package main

import (
	"bufio"
	"fmt"
	"os"
)

func main() {
	reader := bufio.NewReader(os.Stdin)
	fmt.Println("请输入内容:")
	line, isPrefix, err := reader.ReadLine()
	fmt.Printf("line = %s, isPerfix=%v, err=%v\n", line, isPrefix, err)
	fmt.Println("请继续输入内容:")
	readString, err := reader.ReadString('\n')
	fmt.Printf("content = %s, err=%v\n", readString, err)
}
